package com.shooter.server;

import com.shooter.dao.DbConfig;
import com.shooter.utils.PrintUtil;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by BLACK on 2018/3/27.
 */
public class ServerConfig {
    public static String encoding;
    public static String uploadPath;
    static {
        Properties prop = new Properties();
        InputStream in = DbConfig.class.getResourceAsStream("../../../server_config.properties");
        try {
            prop.load(in);
            encoding = prop.getProperty("encoding").trim();
            uploadPath = prop.getProperty("uploadPath").trim();
        } catch (IOException e) {
            PrintUtil.printError(e);
        }
    }
}
